<?php
class IndexController extends CommonController {

   public function indexAction() {//默认Action
        $this->view->assign("server", $this->getServerInfo());
   }
   public function getServerInfo(){
       $server=array('os'=>php_uname('s'));
       $server['run']=php_sapi_name();
       $server['version']=PHP_VERSION;
       $server['upload']=ini_get("upload_max_filesize");
       return $server;
   }
}
?>